package sg.nus.iss.vmcs.models;

/**
 * Door object simulating Vending machine door 
 * @author Olivo Miotto
 */
public class Door {

	/** Variable indicating if the door is closed */
    private boolean isClosed;
    
    /**
     * Creates an instance of Door
     */
    public Door () {
        isClosed = true;
    }

    /**
     * Sets the door to Open or Closed
     * @param isClosed True to close, false to Open
     */
    public void setState (boolean isClosed) {
        this.isClosed = isClosed;
    }

    /**
     * Gets whether the door is Open or Closed
     * @return
     */
    public boolean isDoorClosed(){
    	return isClosed;
    }
}